package cc.yugu.yhdw.webserver.persistence.hdw;


import cc.yugu.yhdw.common.domain.hdw.ExchangePacket;
import cc.yugu.yhdw.common.persistence.MasterMapper;

import java.util.List;
/**
 * 换电套餐信息
 *
 * @Date:Created in 2018/6/30 15:44
 * @Author:
 * @Modified By: zjn 2018/6/30 15:44
 */
public interface ExchangePacketMapper extends MasterMapper {
    /**
    * 根据主键查询表hdw_exchange_packet
    *
    * @Param: [id]
    * @Return: cc.yugu.yhdw.common.domain.hdw.ExchangePacket
    * @Author By: zjn 2018/6/30  15:44
    */
    ExchangePacket find(long id);
    /**
     * 查询，返回行数
     *
     * @Param: [exchangePacket]
     * @Return: int
     * @Author By: zjn 2018/6/30  15:44
     */
    int findPageCount(ExchangePacket exchangePacket);
    /**
     * 查询，返回行数(new)权限设置，没有设置查询上级换电套餐
     * @Param [exchangePacket]
     * @Return int
     * @Author zxj 2018/7/27
     */
    int findPageCounts(ExchangePacket exchangePacket);
    /**
    * 分页查询
    *
    * @Param: [exchangePacket]
    * @Return: java.util.List<cc.yugu.yhdw.common.domain.hdw.ExchangePacket>
    * @Author By: zjn 2018/6/30  15:44
    */
    List<ExchangePacket> findPageResult(ExchangePacket exchangePacket);
    /**
     * 分页查询(new)权限
     * @Param [exchangePacket]
     * @Return java.util.List<cc.yugu.yhdw.common.domain.hdw.ExchangePacket>
     * @Author zxj 2018/7/28
     */
    List<ExchangePacket> findPageResults(ExchangePacket exchangePacket);
    /**
    * 插入
    *
    * @Param: [exchangePacket]
    * @Return: int
    * @Author By: zjn 2018/6/30  15:44
    */
    int insert(ExchangePacket exchangePacket);
    /**
    * 根据主键更新
    *
    * @Param: [exchangePacket]
    * @Return: int
    * @Author By: zjn 2018/6/30  15:45
    */
    int update(ExchangePacket exchangePacket);
    /**
    * 根据主键删除
    *
    * @Param: [id]
    * @Return: int
    * @Author By: zjn 2018/6/30  15:45
    */
    int delete(long id);

}
